package com.net.toooen.service;

import com.net.toooen.api.request.DownPhonenoRequest;
import com.net.toooen.api.request.LoginRequest;
import com.net.toooen.api.request.UserInfoRequest;
import com.net.toooen.api.response.Response;

public interface AppInterfaceService {

	/**
     * 登录
     * 
     * <p>
     * DEMO: text={"msgId":"APP001","loginName":"用户名","password":"密码(MD5加密)" }
     * <p>
     * R:{"resultMap":{
            "id":id,
            "allPhoneNo":资源总数,
            "doneDownload":已下载个数
        },"code":"0","message":"成功。"}
     * @param request
     * @param Response
     */
	public Response login(LoginRequest request);

	/**
     * 下载手机号
     * 
     * <p>
     * DEMO: text={"msgId":"APP002","userId":登录id值,"phoneNoCount":下载资源个数 }
     * <p>
     * R:{"resultMap":{
           "phoneNoList":[
           	 {
           	 	"phoneName":"手机号名称",
           	 	"phoneno":1111111
           	 }
           ]
        },"code":"0","message":"成功。"}
     * @param request
     * @param Response
     */
	public Response downPhoneno(DownPhonenoRequest req);

	/**
	 * @Description 用户信息
	 * @param req
	 * @return
	 */
	public Response userInfo(UserInfoRequest req);


}
